public class Student {
    String name;

    public Student(){
        this("aaaa");
        System.out.println("调用了无参的构造方法");

    }

    public Student(String name){
        this.name=name;
        System.out.println("调用了带参数的构造方法");

    }

public static void test(){

    System.out.println("aaaa");
}
    public static void main(String[] args) {
        Student stu=new Student();
        System.out.println(stu.name);


    }
}


class Test{

    public static void main(String[] args) {
      Student.test();


    }

}